#pragma once

#include "stdafx.h"
#include "TireBehavior.h"

class Bolide
{
public:
    Bolide()  {}
    virtual ~Bolide() {}

    void SetTires(std::auto_ptr<TireBehavior> pTires)
    {
        m_pTires = pTires;
    }

    void Move()
    {
        if (m_pTires.get() != NULL)
        {
            m_pTires->Move();
        }
        else
        {
            std::cout << "Install the tires on your bolide" << std::endl;
        }
    }

private:
    std::auto_ptr<TireBehavior> m_pTires;
};